
# # 日期计算器
# import datetime
# import datetime as dt
#
# # 先构造出datetime变量
# date1 = datetime.datetime(2002, 12, 30)
# date2 = datetime.datetime(2024, 9, 6)
# date1 = dt.datetime(2002, 12, 30)
# date2 = dt.datetime(2024, 9, 6)
# print(date2-date1)


# from datetime import datetime
#
# date1=datetime(2002,12,30)
# date2=datetime(2014,8,6)
# print(date2-date1)


# # 单词逆序
# def reverseWords(s):
#     tokens = s.split(" ")
#     tokens.reverse()
#     return " ".join(tokens)
#
# print(reverseWords("I am a student."))

